package com.example.activiti.config.activiti;

import org.activiti.spring.SpringProcessEngineConfiguration;
import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;

/**
 * @author Mr.yuan
 * @version v1.0
 * @date 2019/11/7 14:05
 **/
@Configuration
public class ActivityConfig implements ProcessEngineConfigurationConfigurer {

    @Override
    public void configure(SpringProcessEngineConfiguration config) {
        config.setDbIdentityUsed(true);
        config.setDatabaseType("mysql");
        config.setActivityFontName("宋体");
        config.setLabelFontName("宋体");
        config.setAnnotationFontName("宋体");
        config.setDatabaseSchemaUpdate("true");
        config.setDatabaseSchema("ACT");
        config.setAsyncExecutorActivate(false);
    }
}
